from likeshop_api_project.base.myBase import Tools


class login_model(Tools):
    path = '/api/account/login'

    def login_action(self, account, pwd, client):
        mydata = {
            "account": account,
            "password": pwd,
            "client": client
        }
        print(self.hosturl + self.path)
        res = self.huihua.post(url=self.hosturl + self.path, data=mydata)
        return res.json()


# import requests
# s = requests.session()
# login = login_model(huihua=s)
# msg = login.login_action(account='17612345678', pwd='admin123', client='4')
# print(msg)